package com.heiye.blog.ai.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author: heiye
 * @date: 2025/11/19 下午10:02
 * @version: v1.0.0
 * @description: 语音模型名称和版本枚举
 */
@Getter
@AllArgsConstructor
public enum SoundModelTypeEnum {
    // GPT-SoVITS 模型
    GPT_SOVITS_V2_PRO_PLUS("GPT-SoVITS", "v2ProPlus", "GSVI-v2ProPlus"),
    ;

    private final String name;

    private final String version;

    private final String simpleName;

    public static SoundModelTypeEnum getSoundModelTypeEnum(String name, String version) {
        for (SoundModelTypeEnum value : SoundModelTypeEnum.values()) {
            if (value.name.equals(name) && value.version.equals(version)) {
                return value;
            }
        }
        return null;
    }
}
